package com.lwj.dto.administration;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

public class DepartmentDto {
    @NotBlank(message = "部门id不能为空")
    private String departmentId;

    /**
     * 上级部门id
     */
    private String parentDepartmentId;

    /**
     * 部门名称
     */
    @NotBlank(message = "部门名称不能为空")
    private String name;

    /**
     * 部门类型
     */
    @NotBlank(message = "部门类型不能为空")
    private String type;

    /**
     * 部门等级
     */
    @NotBlank(message = "部门等级不能为空")
    private Integer level;

    /**
     * 部门联系人
     */
    private String contacts;

    /**
     * 部门排序，用来排序相同父级的子级
     */
    private Integer sortNum;

    /**
     * 部门状态
     */
    private String status;

    private String path;

    private boolean hideChildren=false;


    public boolean isHideChildren() {
        return hideChildren;
    }

    public void setHideChildren(boolean hideChildren) {
        this.hideChildren = hideChildren;
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public String getParentDepartmentId() {
        return parentDepartmentId;
    }

    public void setParentDepartmentId(String parentDepartmentId) {
        this.parentDepartmentId = parentDepartmentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
}
